<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // - 编写一个函数，计算三个数字的大小，按从小到大顺序输出
        var a = prompt() - 0
        var b = prompt() - 0
        var c = prompt() - 0
        fn(a,b,c)

        function fn(a,b,c){
            if(a < b && a < c){
                if( b < c ){
                    console.log(a + ',' + b + ',' + c)
                }else if( c < b){
                    console.log(a + ',' + c + ',' + b)
                }
            }else if(b < a && b < c){
                if(a < c){
                    console.log(b + ',' + a + ',' + c)
                }else if(c < a){
                    console.log(b + ',' + c + ',' + a)
                }
            }else if(c < b && c < a){
                if( a < b ){
                    console.log(c + ',' + a + ',' + b)
                }else if( b < a){
                    console.log(c + ',' + b + ',' + a)
                }
            }
        }
    </script>
</body>
</html>